<!DOCTYPE html>
<html>
<head>
	<title>js案例04例</title>
</head>
<body onload="loading()">

</body>
<script type="text/javascript">
	function loading(){
		alert("this is onload");
	}
</script>
</html>